﻿/*
 * 由SharpDevelop创建。
 * 用户： xieen
 * 日期: 2013-08-14
 * 时间: 14:49
 * 
 * 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件
 */
using System;

namespace GoF23Learning._03.Builder_Pattern
{
	/// <summary>
	/// Description of BusCarBuilder.
	/// </summary>
	public class BusCarBuilder:CarBuilder
	{
		private Car car;
		public BusCarBuilder(){
			car = new Car();
		}
 
		public override Car GetCar()
		{
			return this.car;
		}
		
		public override void BuildWheels()
		{
			this.car.BuildWheels("BusWheels");
		}
		
		public override void BuildFrame()
		{
			this.car.BuildFrame("BusFrame"); 
		}
		
		public override void BuildEngine()
		{
			this.car.BuildEngine("BusEngine"); 
		}
		
		public override void BuildDoors()
		{
			this.car.BuildDoors("BusDoors"); 
		}
	}
}
